Skip to content

Warn about GIRA service issues before feedback/email#67

Merged
rodrigohpalmeirim merged 3 commits into
mainfrom
service-warning-dialog
Jun 30, 2026
Merged

Warn about GIRA service issues before feedback/email#67
rodrigohpalmeirim merged 3 commits into
mainfrom
service-warning-dialog

Conversation

@rodrigohpalmeirim

@rodrigohpalmeirim rodrigohpalmeirim commented Jun 30, 2026

Copy link
Copy Markdown
Member

Why

We keep getting emails and GitHub issues about the GIRA service itself — trips not ending, bike/dock maintenance, charges, account problems — which we can't help with, since the app is unofficial and not affiliated with EMEL. Many users have forgotten we're not EMEL.

What

Show a warning dialog before the two main "reach out to us" actions, nudging GIRA-service questions toward EMEL instead:

  • Profile menu → Feedback (GitHub issues link)
  • About page → email icon (mailto:contact@gira-mais.app)

The dialog explains the app is unofficial and lists the kinds of problems we can't address, pointing users to EMEL via a tappable gira@emel.pt link. Cancel dismisses; Continue anyway proceeds to the original destination.

Implementation notes

  • New reusable ServiceWarningDialog.svelte, shown via the existing enqueueDialog queue (same pattern as the other dialogs).
  • The "Continue" action is a plain <a href>, preserving the app's native external-link / mailto: handling exactly as before — the trigger just intercepts the click to show the dialog first.
  • EN + PT translations added.
  • The EMEL email renders as a mailto: link via {@html} (same approach as InfoDialog.svelte); content is fully static, so no injection surface.

Verification

  • bun run check (svelte-check): 0 errors, 0 warnings
  • eslint clean on all touched files
eng pt

People frequently contact us about GIRA service issues (trips not
ending, maintenance, account problems) that we can't help with, since
the app is unofficial and not affiliated with EMEL. Show a warning
dialog when opening the feedback (GitHub issues) link in the profile
menu and the contact email in the about page, redirecting GIRA service
questions to EMEL via a tappable gira@emel.pt link.
@rodrigohpalmeirim rodrigohpalmeirim requested a review from ttmx June 30, 2026 16:30

@ttmx ttmx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm just explain or fix url

Comment thread src/lib/components/Profile.svelte Outdated
The trigger anchors preventDefault on click, so their href never
navigated — the real navigation is the dialog's Continue link. The
feedback entry was also an invalid <button> nested in an <a> (since
ProfileMenuEntry is itself a button). Use ProfileMenuEntry's onclick
directly (like the History/Settings entries) and make the about-page
email icon a <button>.
@rodrigohpalmeirim rodrigohpalmeirim requested a review from ttmx June 30, 2026 16:56

@ttmx ttmx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@rodrigohpalmeirim rodrigohpalmeirim merged commit 19d81ef into main Jun 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants